import {
  CHANGE_LAYOUT_COLLAPSED,
  CHANGE_NOTICE_READ_STATE,
  CLEAR_NOTICES,
  FETCH_NOTICES,
  SAVE_CLEARED_NOTICES,
  SAVE_NOTICES
} from "./const";

export const fetchNoticesSagaAction = () => ({
  type: FETCH_NOTICES,
});

export const clearNoticesSagaAction = ({payload}) => ({
  type: CLEAR_NOTICES,
  payload
});

export const changeNoticeReadStateSagaAction = ({payload}) => ({
  type: CHANGE_NOTICE_READ_STATE,
  payload,
});


export const changeLayoutCollapsedAction = ({payload}) => ({
  type: CHANGE_LAYOUT_COLLAPSED,
  payload,
});

export const saveNoticesAction = ({payload}) => ({
  type: SAVE_NOTICES,
  payload,
});

export const saveClearedNoticesAction = ({payload}) => ({
  type: SAVE_CLEARED_NOTICES,
  payload,
});
